program = require 'commander'

module.exports =

  # 静态文件目录
  component :
    urlPrefix : '/static'

  # NODE系统环境
  env : process.env.NODE_ENV || 'development'

  surv:
    # qq邮箱
    email_sender: "g.notice@qq.com"
    email_password: "zddthtylyjrkbgee"

  # 微信应用配置
  weixin :
    appid: 'wx3b2d4955bd486a98'
    appScret : 'e7c226b61abe80cd0942de37118d70c6'
    token: 'gnippd14156991599'
    encodingAESKey: '85ZTW9ty53nHBZXnkXwIFn3A1v0FSdv3bkX5xVgP7XE'

  # 微信公众号API URL
  weixinUrl : "https://api.weixin.qq.com"

  # 微信公众号网站根路径
  baseUrl : "http://gfintest1.gf.com.cn/wechat/#"


    # # 腾讯企业邮
    # email_sender: "anly@gfin.gftest.xyz"
    # email_password: "NwGMaAD23AoMCJy2"
    # secrect: "RpYeIWoSCkQSLkfwXW38u99WWfJLzThyWnpMMMp7Gn9jwO2uRzQSkK9snBx7bZHI"
    # corpid: "wma7137b202b90666b"
    # host: "api.exmail.qq.com"

    # email_sender: "gfotcht@163.com"
    # email_password: "mygfotc123456"
    # email_receiver: "158761254@qq.com,215195130@qq.com,897872916@qq.com"

    # "wechat_email_receiver": "lig<1014808492@qq.com>, Tanzt<250603809@qq.com>"
    # "dotc_email_receiver": "lig<1014808492@qq.com>, Tanzt<250603809@qq.com>"
    # "cms_email_receiver": "lig<1014808492@qq.com>, tg<282954605@qq.com>, xhq<43010601@qq.com>,zym<1021837382@qq.com>,zx<magicstarr@foxmail.com>"

  # 腾讯云短信服务
  sendSmsServ:
    appid: "1400037750"
    appkey: "84bf490fc66ec3f066904f42aa156389"

  # 腾讯云文件存储服务
  cos:
    AppId: '1251438792'
    SecretId: 'AKIDP1dMbNbqOBaX9kAaoW6o5a9XmrJu40uA'
    SecretKey: 'YnFuJUzCeV3Xd23NQ85CoFYAdmEQhXk1'
    Bucket:'ppfintest'
    Region:'cn-south'

  # 后端Rest服务器域名
  getRestHost :()->
    if program.restHost
      program.restHost
    else
      if @env == 'development'
        # '119.29.156.30:8081'
        "10.2.124.90:8085"
        #"182.92.234.61:8081"
        # '118.190.87.200:8081'
        # '59.41.16.185:8092'
        # '10.20.12.29:8080'
        # '10.20.12.29:8081'
      else if @env == "test"
        # "119.29.156.30:8081"
        # "10.135.12.158:8085"
        "10.135.12.158:9001"

      else
        # "10.2.124.90:8081"
        # "182.92.234.61:8081"
        # '118.190.87.200:8081'
        # '59.41.16.185:8092'
        # '10.20.12.29:8080'
        # '10.20.12.29:8081'
        # '119.29.156.30:8081'
        '10.2.87.56:8081'

  # 支付平台地址
  getPayHost:()->
    if @env == 'development' || @env == 'test'
      "10.2.122.24:7061"
    else
      "10.2.122.24:7061"